package com.slofzx.nuoda.evaluation.project.enums;

import com.slofzx.nuoda.common.EnumConfig;
import com.slofzx.nuoda.common.config.Type;

import java.util.Arrays;
import java.util.List;
@EnumConfig(
        id = "file-type",
        name = "允许上传文件类型"
)
public enum FileType implements Type {
    PPT("ppt","PowerPoint", Arrays.asList("pptx","ppt")),
    WORD("word","Word", Arrays.asList("docx","doc"))
    ;

    FileType(String id, String name, List<String> suffix) {
        this.id = id;
        this.name = name;
        this.suffix = suffix;
    }

    private String id;
    private String name;
    private List<String> suffix;
    @Override
    public String getId() {
        return id;
    }

    @Override
    public String getName() {
        return name;
    }

    public List<String> getSuffix() {
        return suffix;
    }

}
